

{% extends 'weather/userofficial/base.html' %}

{% load i18n %}

{% block filename %}
  /home/wwwroot/www.smogcast.com/smogcast/weather/templates/weather/userofficial/userofficial_form.html
{% endblock %}

{% block title %}
  {% if object %}
    {% trans "Update UserOfficial" %}
  {% else %}
    {% trans "Create a New UserOfficial" %}
  {% endif %}
{% endblock %}

{% block header-link %}
  {% if object %}
    <a href='{% url "weather_userofficial_update" pk=object.pk %}'>
      {% trans "UserOfficial Update" %}
    </a>
  {% else %}
    <a href='{% url "weather_userofficial_create" %}'>
      {% trans "UserOfficial Create" %}
    </a>
  {% endif %}
{% endblock %}

{% block header-description %}
  {% if object %}
    {% trans "A view that displays a form for editing an existing object." %}
  {% else %}
    {% trans "A view that displays a form for creating an object." %}
  {% endif %}
{% endblock %}

{% block content %}
  <form action='{% if object %}{% url "weather_userofficial_update" pk=object.pk %}{% else %}{% url "weather_userofficial_create" %}{% endif %}' method='post' encoding='utf-8'>
    <fieldset>
      {% csrf_token %}
      {{ form }}
      <div class='form-actions'>
        <button class='btn btn-large btn-success' type='submit'>
          {% if object %}
            {% trans "Update" %}
          {% else %}
            {% trans "Create" %}
          {% endif %}
        </button>
      </div>
    </fieldset>
  </form>
{% endblock %}
